package com.itheima.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * AliConfig
 *
 * @author liliudong
 * @version 1.0
 * @description 阿里的配置类
 * @date 2023/7/16 16:00
 */
@Data
@Component
@ConfigurationProperties(prefix = "ali.oss")
public class AliConfig {

    private String endpoint;
    private String accessKeyId;
    private String accessKeySecret;
    private String bucketName;

    private List<String> hobby;

    private User user;

    @Data
    public static class User {
        private String name;
        private Integer age;
    }
}
